<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
use think\facade\Route;

//Route::get('think', function () {
//    return 'hello,ThinkPHP6!';
//});
//
//Route::get('hello/:name', 'index/hello');

//后台接口路由
Route::domain('adminapi',function () {
    //默认首页 adminapi.wang.com 访问到adminapi/index/index
    Route::get('/', 'adminapi/index/sbb');

    Route::get('captcha/:id', "\\think\\captcha\\CaptchaController@index");//访问图片
    Route::get('captcha','adminapi/login/captcha');

    Route::get('orders','adminapi/order.Order/index');
    Route::get('logout','adminapi/login/logout');

    Route::resource('auths','adminapi/Auth');
    Route::get('nav','adminapi/Auth/nav');

    Route::resource('roles','adminapi/Role');

    Route::resource('admins','adminapi/Admin'); //没写完

    Route::resource('categorys','adminapi/Category');



});
